package com.demos.webcommon.缓存;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("CacheService")
public class service {
    @Autowired
    private com.demos.webcommon.缓存.dao dao;

    public Map<String, Object> get(String id){
        Map<String, Object> map = dao.getById(id);
        return map;
    }
    public List<Map<String, Object>> list(){
        return dao.list();
    }

    public int update(String id, String name){
        return dao.update(id, name);
    }
}
